1 /* 2 * Copyright (C) 2010 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * @addtogroup Input 19 * @{ 20 */ 21 22 /** 23 * @file keycodes.h 24 */ 25 26 module android.ndk.keycodes; 27 28 import arsd.jni; 29 import android.ndk; 30 31 extern (C): 32 nothrow: 33 @nogc: 34 35 /****************************************************************** 36 * 37 * IMPORTANT NOTICE: 38 * 39 * This file is part of Android's set of stable system headers 40 * exposed by the Android NDK (Native Development Kit). 41 * 42 * Third-party source AND binary code relies on the definitions 43 * here to be FROZEN ON ALL UPCOMING PLATFORM RELEASES. 44 * 45 * - DO NOT MODIFY ENUMS (EXCEPT IF YOU ADD NEW 32-BIT VALUES) 46 * - DO NOT MODIFY CONSTANTS OR FUNCTIONAL MACROS 47 * - DO NOT CHANGE THE SIGNATURE OF FUNCTIONS IN ANY WAY 48 * - DO NOT CHANGE THE LAYOUT OR SIZE OF STRUCTURES 49 */ 50 51 /** 52 * Key codes. 53 */ 54 enum 55 { 56 /** Unknown key code. */ 57 AKEYCODE_UNKNOWN = 0, 58 /** Soft Left key. 59 * Usually situated below the display on phones and used as a multi-function 60 * feature key for selecting a software defined function shown on the bottom left 61 * of the display. */ 62 AKEYCODE_SOFT_LEFT = 1, 63 /** Soft Right key. 64 * Usually situated below the display on phones and used as a multi-function 65 * feature key for selecting a software defined function shown on the bottom right 66 * of the display. */ 67 AKEYCODE_SOFT_RIGHT = 2, 68 /** Home key. 69 * This key is handled by the framework and is never delivered to applications. */ 70 AKEYCODE_HOME = 3, 71 /** Back key. */ 72 AKEYCODE_BACK = 4, 73 /** Call key. */ 74 AKEYCODE_CALL = 5, 75 /** End Call key. */ 76 AKEYCODE_ENDCALL = 6, 77 /** '0' key. */ 78 AKEYCODE_0 = 7, 79 /** '1' key. */ 80 AKEYCODE_1 = 8, 81 /** '2' key. */ 82 AKEYCODE_2 = 9, 83 /** '3' key. */ 84 AKEYCODE_3 = 10, 85 /** '4' key. */ 86 AKEYCODE_4 = 11, 87 /** '5' key. */ 88 AKEYCODE_5 = 12, 89 /** '6' key. */ 90 AKEYCODE_6 = 13, 91 /** '7' key. */ 92 AKEYCODE_7 = 14, 93 /** '8' key. */ 94 AKEYCODE_8 = 15, 95 /** '9' key. */ 96 AKEYCODE_9 = 16, 97 /** '*' key. */ 98 AKEYCODE_STAR = 17, 99 /** '#' key. */ 100 AKEYCODE_POUND = 18, 101 /** Directional Pad Up key. 102 * May also be synthesized from trackball motions. */ 103 AKEYCODE_DPAD_UP = 19, 104 /** Directional Pad Down key. 105 * May also be synthesized from trackball motions. */ 106 AKEYCODE_DPAD_DOWN = 20, 107 /** Directional Pad Left key. 108 * May also be synthesized from trackball motions. */ 109 AKEYCODE_DPAD_LEFT = 21, 110 /** Directional Pad Right key. 111 * May also be synthesized from trackball motions. */ 112 AKEYCODE_DPAD_RIGHT = 22, 113 /** Directional Pad Center key. 114 * May also be synthesized from trackball motions. */ 115 AKEYCODE_DPAD_CENTER = 23, 116 /** Volume Up key. 117 * Adjusts the speaker volume up. */ 118 AKEYCODE_VOLUME_UP = 24, 119 /** Volume Down key. 120 * Adjusts the speaker volume down. */ 121 AKEYCODE_VOLUME_DOWN = 25, 122 /** Power key. */ 123 AKEYCODE_POWER = 26, 124 /** Camera key. 125 * Used to launch a camera application or take pictures. */ 126 AKEYCODE_CAMERA = 27, 127 /** Clear key. */ 128 AKEYCODE_CLEAR = 28, 129 /** 'A' key. */ 130 AKEYCODE_A = 29, 131 /** 'B' key. */ 132 AKEYCODE_B = 30, 133 /** 'C' key. */ 134 AKEYCODE_C = 31, 135 /** 'D' key. */ 136 AKEYCODE_D = 32, 137 /** 'E' key. */ 138 AKEYCODE_E = 33, 139 /** 'F' key. */ 140 AKEYCODE_F = 34, 141 /** 'G' key. */ 142 AKEYCODE_G = 35, 143 /** 'H' key. */ 144 AKEYCODE_H = 36, 145 /** 'I' key. */ 146 AKEYCODE_I = 37, 147 /** 'J' key. */ 148 AKEYCODE_J = 38, 149 /** 'K' key. */ 150 AKEYCODE_K = 39, 151 /** 'L' key. */ 152 AKEYCODE_L = 40, 153 /** 'M' key. */ 154 AKEYCODE_M = 41, 155 /** 'N' key. */ 156 AKEYCODE_N = 42, 157 /** 'O' key. */ 158 AKEYCODE_O = 43, 159 /** 'P' key. */ 160 AKEYCODE_P = 44, 161 /** 'Q' key. */ 162 AKEYCODE_Q = 45, 163 /** 'R' key. */ 164 AKEYCODE_R = 46, 165 /** 'S' key. */ 166 AKEYCODE_S = 47, 167 /** 'T' key. */ 168 AKEYCODE_T = 48, 169 /** 'U' key. */ 170 AKEYCODE_U = 49, 171 /** 'V' key. */ 172 AKEYCODE_V = 50, 173 /** 'W' key. */ 174 AKEYCODE_W = 51, 175 /** 'X' key. */ 176 AKEYCODE_X = 52, 177 /** 'Y' key. */ 178 AKEYCODE_Y = 53, 179 /** 'Z' key. */ 180 AKEYCODE_Z = 54, 181 /** ',' key. */ 182 AKEYCODE_COMMA = 55, 183 /** '.' key. */ 184 AKEYCODE_PERIOD = 56, 185 /** Left Alt modifier key. */ 186 AKEYCODE_ALT_LEFT = 57, 187 /** Right Alt modifier key. */ 188 AKEYCODE_ALT_RIGHT = 58, 189 /** Left Shift modifier key. */ 190 AKEYCODE_SHIFT_LEFT = 59, 191 /** Right Shift modifier key. */ 192 AKEYCODE_SHIFT_RIGHT = 60, 193 /** Tab key. */ 194 AKEYCODE_TAB = 61, 195 /** Space key. */ 196 AKEYCODE_SPACE = 62, 197 /** Symbol modifier key. 198 * Used to enter alternate symbols. */ 199 AKEYCODE_SYM = 63, 200 /** Explorer special function key. 201 * Used to launch a browser application. */ 202 AKEYCODE_EXPLORER = 64, 203 /** Envelope special function key. 204 * Used to launch a mail application. */ 205 AKEYCODE_ENVELOPE = 65, 206 /** Enter key. */ 207 AKEYCODE_ENTER = 66, 208 /** Backspace key. 209 * Deletes characters before the insertion point, unlike {@link AKEYCODE_FORWARD_DEL}. */ 210 AKEYCODE_DEL = 67, 211 /** '`' (backtick) key. */ 212 AKEYCODE_GRAVE = 68, 213 /** '-'. */ 214 AKEYCODE_MINUS = 69, 215 /** '=' key. */ 216 AKEYCODE_EQUALS = 70, 217 /** '[' key. */ 218 AKEYCODE_LEFT_BRACKET = 71, 219 /** ']' key. */ 220 AKEYCODE_RIGHT_BRACKET = 72, 221 /** '\' key. */ 222 AKEYCODE_BACKSLASH = 73, 223 /** ';' key. */ 224 AKEYCODE_SEMICOLON = 74, 225 /** ''' (apostrophe) key. */ 226 AKEYCODE_APOSTROPHE = 75, 227 /** '/' key. */ 228 AKEYCODE_SLASH = 76, 229 /** '@' key. */ 230 AKEYCODE_AT = 77, 231 /** Number modifier key. 232 * Used to enter numeric symbols. 233 * This key is not {@link AKEYCODE_NUM_LOCK}; it is more like {@link AKEYCODE_ALT_LEFT}. */ 234 AKEYCODE_NUM = 78, 235 /** Headset Hook key. 236 * Used to hang up calls and stop media. */ 237 AKEYCODE_HEADSETHOOK = 79, 238 /** Camera Focus key. 239 * Used to focus the camera. */ 240 AKEYCODE_FOCUS = 80, 241 /** '+' key. */ 242 AKEYCODE_PLUS = 81, 243 /** Menu key. */ 244 AKEYCODE_MENU = 82, 245 /** Notification key. */ 246 AKEYCODE_NOTIFICATION = 83, 247 /** Search key. */ 248 AKEYCODE_SEARCH = 84, 249 /** Play/Pause media key. */ 250 AKEYCODE_MEDIA_PLAY_PAUSE = 85, 251 /** Stop media key. */ 252 AKEYCODE_MEDIA_STOP = 86, 253 /** Play Next media key. */ 254 AKEYCODE_MEDIA_NEXT = 87, 255 /** Play Previous media key. */ 256 AKEYCODE_MEDIA_PREVIOUS = 88, 257 /** Rewind media key. */ 258 AKEYCODE_MEDIA_REWIND = 89, 259 /** Fast Forward media key. */ 260 AKEYCODE_MEDIA_FAST_FORWARD = 90, 261 /** Mute key. 262 * Mutes the microphone, unlike {@link AKEYCODE_VOLUME_MUTE}. */ 263 AKEYCODE_MUTE = 91, 264 /** Page Up key. */ 265 AKEYCODE_PAGE_UP = 92, 266 /** Page Down key. */ 267 AKEYCODE_PAGE_DOWN = 93, 268 /** Picture Symbols modifier key. 269 * Used to switch symbol sets (Emoji, Kao-moji). */ 270 AKEYCODE_PICTSYMBOLS = 94, 271 /** Switch Charset modifier key. 272 * Used to switch character sets (Kanji, Katakana). */ 273 AKEYCODE_SWITCH_CHARSET = 95, 274 /** A Button key. 275 * On a game controller, the A button should be either the button labeled A 276 * or the first button on the bottom row of controller buttons. */ 277 AKEYCODE_BUTTON_A = 96, 278 /** B Button key. 279 * On a game controller, the B button should be either the button labeled B 280 * or the second button on the bottom row of controller buttons. */ 281 AKEYCODE_BUTTON_B = 97, 282 /** C Button key. 283 * On a game controller, the C button should be either the button labeled C 284 * or the third button on the bottom row of controller buttons. */ 285 AKEYCODE_BUTTON_C = 98, 286 /** X Button key. 287 * On a game controller, the X button should be either the button labeled X 288 * or the first button on the upper row of controller buttons. */ 289 AKEYCODE_BUTTON_X = 99, 290 /** Y Button key. 291 * On a game controller, the Y button should be either the button labeled Y 292 * or the second button on the upper row of controller buttons. */ 293 AKEYCODE_BUTTON_Y = 100, 294 /** Z Button key. 295 * On a game controller, the Z button should be either the button labeled Z 296 * or the third button on the upper row of controller buttons. */ 297 AKEYCODE_BUTTON_Z = 101, 298 /** L1 Button key. 299 * On a game controller, the L1 button should be either the button labeled L1 (or L) 300 * or the top left trigger button. */ 301 AKEYCODE_BUTTON_L1 = 102, 302 /** R1 Button key. 303 * On a game controller, the R1 button should be either the button labeled R1 (or R) 304 * or the top right trigger button. */ 305 AKEYCODE_BUTTON_R1 = 103, 306 /** L2 Button key. 307 * On a game controller, the L2 button should be either the button labeled L2 308 * or the bottom left trigger button. */ 309 AKEYCODE_BUTTON_L2 = 104, 310 /** R2 Button key. 311 * On a game controller, the R2 button should be either the button labeled R2 312 * or the bottom right trigger button. */ 313 AKEYCODE_BUTTON_R2 = 105, 314 /** Left Thumb Button key. 315 * On a game controller, the left thumb button indicates that the left (or only) 316 * joystick is pressed. */ 317 AKEYCODE_BUTTON_THUMBL = 106, 318 /** Right Thumb Button key. 319 * On a game controller, the right thumb button indicates that the right 320 * joystick is pressed. */ 321 AKEYCODE_BUTTON_THUMBR = 107, 322 /** Start Button key. 323 * On a game controller, the button labeled Start. */ 324 AKEYCODE_BUTTON_START = 108, 325 /** Select Button key. 326 * On a game controller, the button labeled Select. */ 327 AKEYCODE_BUTTON_SELECT = 109, 328 /** Mode Button key. 329 * On a game controller, the button labeled Mode. */ 330 AKEYCODE_BUTTON_MODE = 110, 331 /** Escape key. */ 332 AKEYCODE_ESCAPE = 111, 333 /** Forward Delete key. 334 * Deletes characters ahead of the insertion point, unlike {@link AKEYCODE_DEL}. */ 335 AKEYCODE_FORWARD_DEL = 112, 336 /** Left Control modifier key. */ 337 AKEYCODE_CTRL_LEFT = 113, 338 /** Right Control modifier key. */ 339 AKEYCODE_CTRL_RIGHT = 114, 340 /** Caps Lock key. */ 341 AKEYCODE_CAPS_LOCK = 115, 342 /** Scroll Lock key. */ 343 AKEYCODE_SCROLL_LOCK = 116, 344 /** Left Meta modifier key. */ 345 AKEYCODE_META_LEFT = 117, 346 /** Right Meta modifier key. */ 347 AKEYCODE_META_RIGHT = 118, 348 /** Function modifier key. */ 349 AKEYCODE_FUNCTION = 119, 350 /** System Request / Print Screen key. */ 351 AKEYCODE_SYSRQ = 120, 352 /** Break / Pause key. */ 353 AKEYCODE_BREAK = 121, 354 /** Home Movement key. 355 * Used for scrolling or moving the cursor around to the start of a line 356 * or to the top of a list. */ 357 AKEYCODE_MOVE_HOME = 122, 358 /** End Movement key. 359 * Used for scrolling or moving the cursor around to the end of a line 360 * or to the bottom of a list. */ 361 AKEYCODE_MOVE_END = 123, 362 /** Insert key. 363 * Toggles insert / overwrite edit mode. */ 364 AKEYCODE_INSERT = 124, 365 /** Forward key. 366 * Navigates forward in the history stack. Complement of {@link AKEYCODE_BACK}. */ 367 AKEYCODE_FORWARD = 125, 368 /** Play media key. */ 369 AKEYCODE_MEDIA_PLAY = 126, 370 /** Pause media key. */ 371 AKEYCODE_MEDIA_PAUSE = 127, 372 /** Close media key. 373 * May be used to close a CD tray, for example. */ 374 AKEYCODE_MEDIA_CLOSE = 128, 375 /** Eject media key. 376 * May be used to eject a CD tray, for example. */ 377 AKEYCODE_MEDIA_EJECT = 129, 378 /** Record media key. */ 379 AKEYCODE_MEDIA_RECORD = 130, 380 /** F1 key. */ 381 AKEYCODE_F1 = 131, 382 /** F2 key. */ 383 AKEYCODE_F2 = 132, 384 /** F3 key. */ 385 AKEYCODE_F3 = 133, 386 /** F4 key. */ 387 AKEYCODE_F4 = 134, 388 /** F5 key. */ 389 AKEYCODE_F5 = 135, 390 /** F6 key. */ 391 AKEYCODE_F6 = 136, 392 /** F7 key. */ 393 AKEYCODE_F7 = 137, 394 /** F8 key. */ 395 AKEYCODE_F8 = 138, 396 /** F9 key. */ 397 AKEYCODE_F9 = 139, 398 /** F10 key. */ 399 AKEYCODE_F10 = 140, 400 /** F11 key. */ 401 AKEYCODE_F11 = 141, 402 /** F12 key. */ 403 AKEYCODE_F12 = 142, 404 /** Num Lock key. 405 * This is the Num Lock key; it is different from {@link AKEYCODE_NUM}. 406 * This key alters the behavior of other keys on the numeric keypad. */ 407 AKEYCODE_NUM_LOCK = 143, 408 /** Numeric keypad '0' key. */ 409 AKEYCODE_NUMPAD_0 = 144, 410 /** Numeric keypad '1' key. */ 411 AKEYCODE_NUMPAD_1 = 145, 412 /** Numeric keypad '2' key. */ 413 AKEYCODE_NUMPAD_2 = 146, 414 /** Numeric keypad '3' key. */ 415 AKEYCODE_NUMPAD_3 = 147, 416 /** Numeric keypad '4' key. */ 417 AKEYCODE_NUMPAD_4 = 148, 418 /** Numeric keypad '5' key. */ 419 AKEYCODE_NUMPAD_5 = 149, 420 /** Numeric keypad '6' key. */ 421 AKEYCODE_NUMPAD_6 = 150, 422 /** Numeric keypad '7' key. */ 423 AKEYCODE_NUMPAD_7 = 151, 424 /** Numeric keypad '8' key. */ 425 AKEYCODE_NUMPAD_8 = 152, 426 /** Numeric keypad '9' key. */ 427 AKEYCODE_NUMPAD_9 = 153, 428 /** Numeric keypad '/' key (for division). */ 429 AKEYCODE_NUMPAD_DIVIDE = 154, 430 /** Numeric keypad '*' key (for multiplication). */ 431 AKEYCODE_NUMPAD_MULTIPLY = 155, 432 /** Numeric keypad '-' key (for subtraction). */ 433 AKEYCODE_NUMPAD_SUBTRACT = 156, 434 /** Numeric keypad '+' key (for addition). */ 435 AKEYCODE_NUMPAD_ADD = 157, 436 /** Numeric keypad '.' key (for decimals or digit grouping). */ 437 AKEYCODE_NUMPAD_DOT = 158, 438 /** Numeric keypad ',' key (for decimals or digit grouping). */ 439 AKEYCODE_NUMPAD_COMMA = 159, 440 /** Numeric keypad Enter key. */ 441 AKEYCODE_NUMPAD_ENTER = 160, 442 /** Numeric keypad '=' key. */ 443 AKEYCODE_NUMPAD_EQUALS = 161, 444 /** Numeric keypad '(' key. */ 445 AKEYCODE_NUMPAD_LEFT_PAREN = 162, 446 /** Numeric keypad ')' key. */ 447 AKEYCODE_NUMPAD_RIGHT_PAREN = 163, 448 /** Volume Mute key. 449 * Mutes the speaker, unlike {@link AKEYCODE_MUTE}. 450 * This key should normally be implemented as a toggle such that the first press 451 * mutes the speaker and the second press restores the original volume. */ 452 AKEYCODE_VOLUME_MUTE = 164, 453 /** Info key. 454 * Common on TV remotes to show additional information related to what is 455 * currently being viewed. */ 456 AKEYCODE_INFO = 165, 457 /** Channel up key. 458 * On TV remotes, increments the television channel. */ 459 AKEYCODE_CHANNEL_UP = 166, 460 /** Channel down key. 461 * On TV remotes, decrements the television channel. */ 462 AKEYCODE_CHANNEL_DOWN = 167, 463 /** Zoom in key. */ 464 AKEYCODE_ZOOM_IN = 168, 465 /** Zoom out key. */ 466 AKEYCODE_ZOOM_OUT = 169, 467 /** TV key. 468 * On TV remotes, switches to viewing live TV. */ 469 AKEYCODE_TV = 170, 470 /** Window key. 471 * On TV remotes, toggles picture-in-picture mode or other windowing functions. */ 472 AKEYCODE_WINDOW = 171, 473 /** Guide key. 474 * On TV remotes, shows a programming guide. */ 475 AKEYCODE_GUIDE = 172, 476 /** DVR key. 477 * On some TV remotes, switches to a DVR mode for recorded shows. */ 478 AKEYCODE_DVR = 173, 479 /** Bookmark key. 480 * On some TV remotes, bookmarks content or web pages. */ 481 AKEYCODE_BOOKMARK = 174, 482 /** Toggle captions key. 483 * Switches the mode for closed-captioning text, for example during television shows. */ 484 AKEYCODE_CAPTIONS = 175, 485 /** Settings key. 486 * Starts the system settings activity. */ 487 AKEYCODE_SETTINGS = 176, 488 /** TV power key. 489 * On TV remotes, toggles the power on a television screen. */ 490 AKEYCODE_TV_POWER = 177, 491 /** TV input key. 492 * On TV remotes, switches the input on a television screen. */ 493 AKEYCODE_TV_INPUT = 178, 494 /** Set-top-box power key. 495 * On TV remotes, toggles the power on an external Set-top-box. */ 496 AKEYCODE_STB_POWER = 179, 497 /** Set-top-box input key. 498 * On TV remotes, switches the input mode on an external Set-top-box. */ 499 AKEYCODE_STB_INPUT = 180, 500 /** A/V Receiver power key. 501 * On TV remotes, toggles the power on an external A/V Receiver. */ 502 AKEYCODE_AVR_POWER = 181, 503 /** A/V Receiver input key. 504 * On TV remotes, switches the input mode on an external A/V Receiver. */ 505 AKEYCODE_AVR_INPUT = 182, 506 /** Red "programmable" key. 507 * On TV remotes, acts as a contextual/programmable key. */ 508 AKEYCODE_PROG_RED = 183, 509 /** Green "programmable" key. 510 * On TV remotes, actsas a contextual/programmable key. */ 511 AKEYCODE_PROG_GREEN = 184, 512 /** Yellow "programmable" key. 513 * On TV remotes, acts as a contextual/programmable key. */ 514 AKEYCODE_PROG_YELLOW = 185, 515 /** Blue "programmable" key. 516 * On TV remotes, acts as a contextual/programmable key. */ 517 AKEYCODE_PROG_BLUE = 186, 518 /** App switch key. 519 * Should bring up the application switcher dialog. */ 520 AKEYCODE_APP_SWITCH = 187, 521 /** Generic Game Pad Button #1.*/ 522 AKEYCODE_BUTTON_1 = 188, 523 /** Generic Game Pad Button #2.*/ 524 AKEYCODE_BUTTON_2 = 189, 525 /** Generic Game Pad Button #3.*/ 526 AKEYCODE_BUTTON_3 = 190, 527 /** Generic Game Pad Button #4.*/ 528 AKEYCODE_BUTTON_4 = 191, 529 /** Generic Game Pad Button #5.*/ 530 AKEYCODE_BUTTON_5 = 192, 531 /** Generic Game Pad Button #6.*/ 532 AKEYCODE_BUTTON_6 = 193, 533 /** Generic Game Pad Button #7.*/ 534 AKEYCODE_BUTTON_7 = 194, 535 /** Generic Game Pad Button #8.*/ 536 AKEYCODE_BUTTON_8 = 195, 537 /** Generic Game Pad Button #9.*/ 538 AKEYCODE_BUTTON_9 = 196, 539 /** Generic Game Pad Button #10.*/ 540 AKEYCODE_BUTTON_10 = 197, 541 /** Generic Game Pad Button #11.*/ 542 AKEYCODE_BUTTON_11 = 198, 543 /** Generic Game Pad Button #12.*/ 544 AKEYCODE_BUTTON_12 = 199, 545 /** Generic Game Pad Button #13.*/ 546 AKEYCODE_BUTTON_13 = 200, 547 /** Generic Game Pad Button #14.*/ 548 AKEYCODE_BUTTON_14 = 201, 549 /** Generic Game Pad Button #15.*/ 550 AKEYCODE_BUTTON_15 = 202, 551 /** Generic Game Pad Button #16.*/ 552 AKEYCODE_BUTTON_16 = 203, 553 /** Language Switch key. 554 * Toggles the current input language such as switching between English and Japanese on 555 * a QWERTY keyboard. On some devices, the same function may be performed by 556 * pressing Shift+Spacebar. */ 557 AKEYCODE_LANGUAGE_SWITCH = 204, 558 /** Manner Mode key. 559 * Toggles silent or vibrate mode on and off to make the device behave more politely 560 * in certain settings such as on a crowded train. On some devices, the key may only 561 * operate when long-pressed. */ 562 AKEYCODE_MANNER_MODE = 205, 563 /** 3D Mode key. 564 * Toggles the display between 2D and 3D mode. */ 565 AKEYCODE_3D_MODE = 206, 566 /** Contacts special function key. 567 * Used to launch an address book application. */ 568 AKEYCODE_CONTACTS = 207, 569 /** Calendar special function key. 570 * Used to launch a calendar application. */ 571 AKEYCODE_CALENDAR = 208, 572 /** Music special function key. 573 * Used to launch a music player application. */ 574 AKEYCODE_MUSIC = 209, 575 /** Calculator special function key. 576 * Used to launch a calculator application. */ 577 AKEYCODE_CALCULATOR = 210, 578 /** Japanese full-width / half-width key. */ 579 AKEYCODE_ZENKAKU_HANKAKU = 211, 580 /** Japanese alphanumeric key. */ 581 AKEYCODE_EISU = 212, 582 /** Japanese non-conversion key. */ 583 AKEYCODE_MUHENKAN = 213, 584 /** Japanese conversion key. */ 585 AKEYCODE_HENKAN = 214, 586 /** Japanese katakana / hiragana key. */ 587 AKEYCODE_KATAKANA_HIRAGANA = 215, 588 /** Japanese Yen key. */ 589 AKEYCODE_YEN = 216, 590 /** Japanese Ro key. */ 591 AKEYCODE_RO = 217, 592 /** Japanese kana key. */ 593 AKEYCODE_KANA = 218, 594 /** Assist key. 595 * Launches the global assist activity. Not delivered to applications. */ 596 AKEYCODE_ASSIST = 219, 597 /** Brightness Down key. 598 * Adjusts the screen brightness down. */ 599 AKEYCODE_BRIGHTNESS_DOWN = 220, 600 /** Brightness Up key. 601 * Adjusts the screen brightness up. */ 602 AKEYCODE_BRIGHTNESS_UP = 221, 603 /** Audio Track key. 604 * Switches the audio tracks. */ 605 AKEYCODE_MEDIA_AUDIO_TRACK = 222, 606 /** Sleep key. 607 * Puts the device to sleep. Behaves somewhat like {@link AKEYCODE_POWER} but it 608 * has no effect if the device is already asleep. */ 609 AKEYCODE_SLEEP = 223, 610 /** Wakeup key. 611 * Wakes up the device. Behaves somewhat like {@link AKEYCODE_POWER} but it 612 * has no effect if the device is already awake. */ 613 AKEYCODE_WAKEUP = 224, 614 /** Pairing key. 615 * Initiates peripheral pairing mode. Useful for pairing remote control 616 * devices or game controllers, especially if no other input mode is 617 * available. */ 618 AKEYCODE_PAIRING = 225, 619 /** Media Top Menu key. 620 * Goes to the top of media menu. */ 621 AKEYCODE_MEDIA_TOP_MENU = 226, 622 /** '11' key. */ 623 AKEYCODE_11 = 227, 624 /** '12' key. */ 625 AKEYCODE_12 = 228, 626 /** Last Channel key. 627 * Goes to the last viewed channel. */ 628 AKEYCODE_LAST_CHANNEL = 229, 629 /** TV data service key. 630 * Displays data services like weather, sports. */ 631 AKEYCODE_TV_DATA_SERVICE = 230, 632 /** Voice Assist key. 633 * Launches the global voice assist activity. Not delivered to applications. */ 634 AKEYCODE_VOICE_ASSIST = 231, 635 /** Radio key. 636 * Toggles TV service / Radio service. */ 637 AKEYCODE_TV_RADIO_SERVICE = 232, 638 /** Teletext key. 639 * Displays Teletext service. */ 640 AKEYCODE_TV_TELETEXT = 233, 641 /** Number entry key. 642 * Initiates to enter multi-digit channel nubmber when each digit key is assigned 643 * for selecting separate channel. Corresponds to Number Entry Mode (0x1D) of CEC 644 * User Control Code. */ 645 AKEYCODE_TV_NUMBER_ENTRY = 234, 646 /** Analog Terrestrial key. 647 * Switches to analog terrestrial broadcast service. */ 648 AKEYCODE_TV_TERRESTRIAL_ANALOG = 235, 649 /** Digital Terrestrial key. 650 * Switches to digital terrestrial broadcast service. */ 651 AKEYCODE_TV_TERRESTRIAL_DIGITAL = 236, 652 /** Satellite key. 653 * Switches to digital satellite broadcast service. */ 654 AKEYCODE_TV_SATELLITE = 237, 655 /** BS key. 656 * Switches to BS digital satellite broadcasting service available in Japan. */ 657 AKEYCODE_TV_SATELLITE_BS = 238, 658 /** CS key. 659 * Switches to CS digital satellite broadcasting service available in Japan. */ 660 AKEYCODE_TV_SATELLITE_CS = 239, 661 /** BS/CS key. 662 * Toggles between BS and CS digital satellite services. */ 663 AKEYCODE_TV_SATELLITE_SERVICE = 240, 664 /** Toggle Network key. 665 * Toggles selecting broacast services. */ 666 AKEYCODE_TV_NETWORK = 241, 667 /** Antenna/Cable key. 668 * Toggles broadcast input source between antenna and cable. */ 669 AKEYCODE_TV_ANTENNA_CABLE = 242, 670 /** HDMI #1 key. 671 * Switches to HDMI input #1. */ 672 AKEYCODE_TV_INPUT_HDMI_1 = 243, 673 /** HDMI #2 key. 674 * Switches to HDMI input #2. */ 675 AKEYCODE_TV_INPUT_HDMI_2 = 244, 676 /** HDMI #3 key. 677 * Switches to HDMI input #3. */ 678 AKEYCODE_TV_INPUT_HDMI_3 = 245, 679 /** HDMI #4 key. 680 * Switches to HDMI input #4. */ 681 AKEYCODE_TV_INPUT_HDMI_4 = 246, 682 /** Composite #1 key. 683 * Switches to composite video input #1. */ 684 AKEYCODE_TV_INPUT_COMPOSITE_1 = 247, 685 /** Composite #2 key. 686 * Switches to composite video input #2. */ 687 AKEYCODE_TV_INPUT_COMPOSITE_2 = 248, 688 /** Component #1 key. 689 * Switches to component video input #1. */ 690 AKEYCODE_TV_INPUT_COMPONENT_1 = 249, 691 /** Component #2 key. 692 * Switches to component video input #2. */ 693 AKEYCODE_TV_INPUT_COMPONENT_2 = 250, 694 /** VGA #1 key. 695 * Switches to VGA (analog RGB) input #1. */ 696 AKEYCODE_TV_INPUT_VGA_1 = 251, 697 /** Audio description key. 698 * Toggles audio description off / on. */ 699 AKEYCODE_TV_AUDIO_DESCRIPTION = 252, 700 /** Audio description mixing volume up key. 701 * Louden audio description volume as compared with normal audio volume. */ 702 AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP = 253, 703 /** Audio description mixing volume down key. 704 * Lessen audio description volume as compared with normal audio volume. */ 705 AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN = 254, 706 /** Zoom mode key. 707 * Changes Zoom mode (Normal, Full, Zoom, Wide-zoom, etc.) */ 708 AKEYCODE_TV_ZOOM_MODE = 255, 709 /** Contents menu key. 710 * Goes to the title list. Corresponds to Contents Menu (0x0B) of CEC User Control 711 * Code */ 712 AKEYCODE_TV_CONTENTS_MENU = 256, 713 /** Media context menu key. 714 * Goes to the context menu of media contents. Corresponds to Media Context-sensitive 715 * Menu (0x11) of CEC User Control Code. */ 716 AKEYCODE_TV_MEDIA_CONTEXT_MENU = 257, 717 /** Timer programming key. 718 * Goes to the timer recording menu. Corresponds to Timer Programming (0x54) of 719 * CEC User Control Code. */ 720 AKEYCODE_TV_TIMER_PROGRAMMING = 258, 721 /** Help key. */ 722 AKEYCODE_HELP = 259, 723 AKEYCODE_NAVIGATE_PREVIOUS = 260, 724 AKEYCODE_NAVIGATE_NEXT = 261, 725 AKEYCODE_NAVIGATE_IN = 262, 726 AKEYCODE_NAVIGATE_OUT = 263, 727 /** Primary stem key for Wear 728 * Main power/reset button on watch. */ 729 AKEYCODE_STEM_PRIMARY = 264, 730 /** Generic stem key 1 for Wear */ 731 AKEYCODE_STEM_1 = 265, 732 /** Generic stem key 2 for Wear */ 733 AKEYCODE_STEM_2 = 266, 734 /** Generic stem key 3 for Wear */ 735 AKEYCODE_STEM_3 = 267, 736 /** Directional Pad Up-Left */ 737 AKEYCODE_DPAD_UP_LEFT = 268, 738 /** Directional Pad Down-Left */ 739 AKEYCODE_DPAD_DOWN_LEFT = 269, 740 /** Directional Pad Up-Right */ 741 AKEYCODE_DPAD_UP_RIGHT = 270, 742 /** Directional Pad Down-Right */ 743 AKEYCODE_DPAD_DOWN_RIGHT = 271, 744 /** Skip forward media key */ 745 AKEYCODE_MEDIA_SKIP_FORWARD = 272, 746 /** Skip backward media key */ 747 AKEYCODE_MEDIA_SKIP_BACKWARD = 273, 748 /** Step forward media key. 749 * Steps media forward one from at a time. */ 750 AKEYCODE_MEDIA_STEP_FORWARD = 274, 751 /** Step backward media key. 752 * Steps media backward one from at a time. */ 753 AKEYCODE_MEDIA_STEP_BACKWARD = 275, 754 /** Put device to sleep unless a wakelock is held. */ 755 AKEYCODE_SOFT_SLEEP = 276, 756 /** Cut key. */ 757 AKEYCODE_CUT = 277, 758 /** Copy key. */ 759 AKEYCODE_COPY = 278, 760 /** Paste key. */ 761 AKEYCODE_PASTE = 279, 762 /** fingerprint navigation key, up. */ 763 AKEYCODE_SYSTEM_NAVIGATION_UP = 280, 764 /** fingerprint navigation key, down. */ 765 AKEYCODE_SYSTEM_NAVIGATION_DOWN = 281, 766 /** fingerprint navigation key, left. */ 767 AKEYCODE_SYSTEM_NAVIGATION_LEFT = 282, 768 /** fingerprint navigation key, right. */ 769 AKEYCODE_SYSTEM_NAVIGATION_RIGHT = 283, 770 /** all apps */ 771 AKEYCODE_ALL_APPS = 284, 772 /** refresh key */ 773 AKEYCODE_REFRESH = 285, 774 /** Thumbs up key. Apps can use this to let user upvote content. */ 775 AKEYCODE_THUMBS_UP = 286, 776 /** Thumbs down key. Apps can use this to let user downvote content. */ 777 AKEYCODE_THUMBS_DOWN = 287, 778 /** Used to switch current account that is consuming content. 779 * May be consumed by system to switch current viewer profile. */ 780 AKEYCODE_PROFILE_SWITCH = 288 781 782 // NOTE: If you add a new keycode here you must also add it to several other files. 783 // Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list. 784 } 785 786 // _ANDROID_KEYCODES_H 787 788 /** @} */